package cn.org.rookie.jeesdp.core.utils;

import cn.org.rookie.jeesdp.core.Snowflake;

import java.util.UUID;

public class IdUtils {

    private static final Snowflake snowflake = new Snowflake(1, 1);

    public static String snowflakeId() {
        return String.valueOf(snowflake.nextId());
    }

    public static String uuid() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }
}
